package com.happy_lab_management.demo.system.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.happy_lab_management.demo.system.mapper.SystemMapper;
import com.happy_lab_management.demo.system.service.SystemService;

import com.happy_lab_management.entity.System;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("systemService")
public class SystemServiceImpl extends ServiceImpl<SystemMapper, System> implements SystemService {
    @Autowired
    private SystemMapper systemMapper;
    public Integer getValueByKey(String key) {

        return systemMapper.getValueByKey(key);
    }

    @Override
    public Boolean setValueByKey(String key,Integer value) {
        return systemMapper.setValueByKey(key,value);
    }
}
